﻿using myapp.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myapp.Databases.DAO
{
    public class PossitionDao
    {
        public static List<Possition> ListPossitionOfGroup(PossitionGroup groupModel)
        {
            List<Possition> lstPossiton = new List<Possition>();

            for (int i = 1; i < 20+groupModel.Id; i++)
            {
                Possition pos = new Possition() { Id = i, Name = "Bàn " + i, Group = groupModel, Order = null };
                lstPossiton.Add(pos);
            }
            return lstPossiton;
        }

    }
}
